package com.didispace;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * Created by lindan on 2016/10/29.
 */
@Component
public class MyRunner implements CommandLineRunner{

    @Autowired
    private MyBean bean;

    @Override
    public void run(String... strings) throws Exception {
        System.out.println("My runner---application name is"+bean.getProp());
    }
}

//@Component
//public ReconTool implements CommandLineRunner {
//
//@Override
//public void run(String... args) throws Exception {
//        //implement your business logic here
//        }
//        }
